<?php


namespace app\author\controller;


use think\Controller;
use think\db\Query;
use Db;
class CrontabChapter extends Controller
{
    public function index()
    {
        $author_id = session('author_member_id');
        $data = Db::view('crontab_chapter',['name' => 'chapter_name','id'=>'chapter_id','time'])
            ->view('book','name,id','crontab_chapter.book_id = book.id')
            ->where('author_id',$author_id)
            ->paginate(10);
        $this->assign([
            'total' => $data->total(),
            'data'=>$data
        ]);
        return view("index");
    }
}